package canss.webservice.model;

import java.io.Serializable;
import java.sql.Date;
public class SCPContentWrap implements Serializable
{
	private static final long serialVersionUID = 5796783641754552592L;
	private String dc_publisher = "";
	private String ContId = "";
	private String xmpdm_genre = "";
	private String dc_title = "";
	private String dc_description = "";
	private long dc_date = 0;
	private String dc_subject = "";
	
	public static final SCPContentWrap emptySCPContent = new SCPContentWrap();
		
	public SCPContentWrap()
	{
		super();
	}
	public SCPContentWrap(String _ContId)
	{
		super();
		if((_ContId!=null))
			ContId = _ContId;
	}


	public String getCONTID()
	{
		return ContId;
	}
	public void setCONTID(String _ContId)
	{
		if((_ContId!=null))
			ContId = _ContId;
	}
	public long getDC_DATE()
	{
		return dc_date;
	}
	
	public void setDC_DATE(long _dc_date)
	{
		if((_dc_date>=0))
			dc_date = _dc_date;
	}


	public String getDC_PUBLISHER()
	{
		return dc_publisher;
	}
	public void setDC_PUBLISHER(String _dc_publisher)
	{
		dc_publisher = _dc_publisher==null?"":_dc_publisher; 
	}
	public String getXMPDM_GENRE()
	{
		return xmpdm_genre;
	}
	public void setXMPDM_GENRE(String _xmpdm_genre)
	{
		xmpdm_genre = _xmpdm_genre==null?"":_xmpdm_genre; 
	}
	public String getDC_TITLE()
	{
		return dc_title;
	}
	public void setDC_TITLE(String _dc_title)
	{
		dc_title = _dc_title==null?"":_dc_title; 
	}
	public String getDC_DESCRIPTION()
	{
		return dc_description;
	}
	public void setDC_DESCRIPTION(String _dc_description)
	{
		dc_description = _dc_description==null?"":_dc_description; 
	}
	public String getDC_SUBJECT()
	{
		return dc_subject;
	}
	public void setDC_SUBJECT(String _dc_subject)
	{
		dc_subject = _dc_subject==null?"":_dc_subject; 
	}

	public SCPContent createSCPContentObj()
	{
		SCPContent ret = new SCPContent();
		ret.setCONTID(this.ContId);
		ret.setDC_DATE(new Date(this.dc_date));
		ret.setDC_DESCRIPTION(this.dc_description);
		ret.setDC_PUBLISHER(this.dc_publisher);
		ret.setDC_SUBJECT(this.dc_subject);
		ret.setDC_TITLE(this.dc_title);
		ret.setXMPDM_GENRE(this.xmpdm_genre);
		return ret;	
	}
}
